package com.itheima_7;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

public class test_5 {
    public static void main(String[] args) {
        String s="2021年03月22日 08:00:00";

        DateTimeFormatter pattern = DateTimeFormatter.ofPattern("yyyy年MM月dd日 HH:mm:ss");

        LocalDateTime localDateTime = LocalDateTime.parse(s, pattern);

        LocalDateTime newlocalDateTime = localDateTime.plusDays(1);

        String f = newlocalDateTime.format(pattern);

        System.out.println(f);

    }
}
